<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/jsplib/pubhead.jsp"%>
<%@ page import="net.comm.common.ValueMaping" %>
<%@ taglib uri="/WEB-INF/myTaglib.tld" prefix="tag"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>我的日志</title>
	<link href="${cpath}/css/youlin.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<!--外套 start -->
<div class="wrap">
  <!--页首 start -->
	<%@ include file="/menu.jsp"%>
  <!--页首 end -->  
  
  <!--导航面包屑 start -->
  <div class="breadCrumb">
  <div class="breadCrumbNav">当前位置：<a href="${cpath}/users.do?action=main">我的主页</a> >> <a href="${cpath}/blog.do?action=list&qryUserID=${theForm.qryUserID}">日志列表</a> </div>
	<%@ include file="/navf.jsp"%>
 </div> 
  <!--导航面包屑 end -->
  
  <!--主体 start -->
 <div class="body myalbum">
 
  <div class="hotBox1">  
    <div class="hotBox1-left">
         <div class="userInfo">  
          <a href="${cpath}/users.do?action=home&userID=${theForm.qryUserID}"><img src="${cpath}/${myfn:getUserPic(theForm.qryUserID)}" width="75" height="75" class="shequ icon user_icon_2"/></a>
          <p><span class="w70"><a href="${cpath}/users.do?action=home&userID=${theForm.qryUserID}">${myfn:getUserNick(theForm.qryUserID)}</a></span></p>
          <p><span class="w70">ID:${theForm.qryUserID}</span></p>
          <p><span >积分：${myfn:getUserIntegral(theForm.qryUserID)}</span></p>
        </div>
      </div>
    <div class="hotBox1-right">
      <p class="lineColor1">全部日志有 ${totalnum} 篇</p>
       <c:if test="${ userID == theForm.qryUserID}">
	   <p><a href="${cpath}/blog.do?action=addPage&userID=${userID}"><img src="${cpath}/images/icon_21.gif" width="219" height="48" /></a></p>
	   </c:if>
    </div>
  </div> 
   
<div class="left-Box6">
  <h3>日志列表</h3>
  <div class="left-Box6-content">
  	<form action="${cpath}/blog.do" name="theForm"  method="post" enctype="multipart/form-data" >
          <dl class="mylogList">
             <dt>
               <span class="s1">标题</span>
               <span class="s2">回复/浏览</span>
			   <c:if test="${theForm.qryUserID == userID}">
               <span class="s3">编辑</span>
               <span class="s4">删除</span>
               <span class="s5">权限</span>
               <!--<span class="s6">推荐日志</span>
               <span class="s7">转为私密日志</span>-->
			   </c:if>
               <span class="s8">日期</span>
             </dt>
			<c:forEach var="blog" items="${bloglist}" varStatus="status">
             <dd>
               <span class="s1"><a href="${cpath}/blog_info/qryBlogID_${blog.blogID}.html"><c:out value="${blog.title}"></c:out></a></span>
               <span class="s2">（${blog.replyNum}/${blog.attachNum}）</span>
			   <c:if test="${theForm.qryUserID == userID}">
               <span class="s3"><a class="color_red" href="${cpath}/blog_modifyPage/blogID_${blog.blogID}_follID_${blog.follID}_upFollID_${blog.upFollID}.html">编辑</a></span>
               <span class="s4"><a href="${cpath}/blog_delall/blogID_${blog.blogID}.html"><img src="${cpath}/images/icon_22.gif" width="15" height="14" /></a></span>
               <span class="s5">${myfn:getMsg("USERSET_TYPE", blog.blogSet)}</span>
			   </c:if>
               <span class="s8 color_grey1">${myfn:formatYYYYMMDD(blog.mtime, '-')}</span>
             </dd>
			</c:forEach>
          </dl>           
    <div class="clearFloat"></div>
    
    <div class="page">
		<input type="hidden" name='qryUserID' value='${theForm.qryUserID}'/>
		<!-- 分页主键 formName字段当前的form名称 -->
		<%@ include file="/jsplib/page.jsp" %>
		<!--隐藏域-->
		<input type="hidden" name='action' value='list'/>
    </div>
	</form>

  </div>

</div>
  
    <div class="clearFloat"></div>
 </div> 
 <!--主体 end -->
 
 
 <!--页脚 start -->
	<%@ include file="/foot.jsp"%>
 <!--页脚 end --> 
</div>
<!--外套 end -->

</body>
</html>
